const {Pagination} = require('jj.js');
const page_tpl = require('./_page_tpl.js');

class Index extends Pagination
{
    async init(opts) { 
        let theme = await  this.$model.site.getConfig('theme') 
        let pc = await page_tpl.$get_page_tpl(theme)
        super.init({
            url_index: '/',
            ...opts,
            ...pc
        });
        return this;
    }
}

module.exports = Index;